package com.awanp3.nimbus.base.domain.bo;

import com.awanp3.nimbus.base.domain.BaseLocation;
import com.awanp3.nimbus.common.core.validate.AddGroup;
import com.awanp3.nimbus.common.core.validate.EditGroup;
import com.awanp3.nimbus.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 库位信息业务对象 base_location
 *
 * @author 20014170
 * @date 2025-09-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseLocation.class, reverseConvertGenerate = false)
public class BaseLocationBo extends BaseEntity {

    /**
     * 库位ID
     */
    private Long locationId;

    /**
     * 库位编码
     */
    @NotBlank(message = "库位编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationCode;

    /**
     * 库位名称
     */
    @NotBlank(message = "库位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationName;

    /**
     * 库位类型
     */
    @NotBlank(message = "库位类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationType;

    /**
     * 工厂编码
     */
    @NotBlank(message = "工厂编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plantCode;

    /**
     * 长度
     */
    private Float length;

    /**
     * 宽度
     */
    private Float width;

    /**
     * 高度
     */
    private Float height;

    /**
     * 体积上限
     */
    private Float volumeLimit;

    /**
     * 重量上限
     */
    private Float weightLimit;

    /**
     * 箱数上限
     */
    private Integer boxLimit;

    /**
     * 件数上限
     */
    private Integer skuLimit;

    /**
     * 托盘上限
     */
    private Integer palletLimit;

    /**
     * 状态（0正常 1停用）
     */
    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
